package com.jcj.jcjsharding.engine;

/**
 * sharding上下文
 */
public class ShardingContext {
    private static final ThreadLocal<ShardingResult> LOCAL = new ThreadLocal<>();

    public static ShardingResult get() {
        return LOCAL.get();
    }

    public static void set(ShardingResult result) {
        // TODO: 2024/12/19
        LOCAL.set(result);
    }
}
